package com.zgtp.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zgtp.annotation.DataBase;
import com.zgtp.mapper.DataBaseMapper;
import com.zgtp.service.DataBaseService;

/**
 * @author e-fan.yang12
 */
@Service
public class DataBaseServiceImpl implements DataBaseService {

	private final static Logger log = LoggerFactory.getLogger(DataBaseServiceImpl.class);
	
	@Autowired
	private DataBaseMapper dataBaseMapper;

	@Override
	@DataBase(value = "db1")
	public int selectDb1(String siteCode) {
		return dataBaseMapper.selectDb1();
	}

	@Override
	@DataBase(value = "db2")
	public int selectDb2(String siteCode) {
		int i = dataBaseMapper.selectDb2();
		return i;
	}
}
